import request from "../request.js"
//求职端获取个人信息
export const memberInfo = data => {
	return request.post('/member-v1/member/member-info/show', data)
}
// 微信用户信息
export const memberUserInfo = data => {
	return request.post('/common-v1/member/wechat-user-info', data)
}
// 求职端个人认证
export const certification = data => {
	return request.post('/member-v1/member/certification', data)
}
export const face = data => {
	return request.post('/member-v1/member/face', data)
}
export const faceQuery = data => {
	return request.post('/member-v1/member/face/query', data, false)
}
//切换角色登录
export const memberSwitchLogin = data => {
	return request.post('/member-v1/auth/member/auth/switch-login', data)
}
//修改密码
export const resetPassword = data => {
	return request.post('/member-v1/auth/auth/reset-password', data)
}
//修改签署密码
export const setSignPassword = data => {
	return request.post('/member-v1/auth/auth/set-sign-password', data)
}
//个人印章列表
export const memberSeal = data => {
	return request.post('/member-v1/member/member-seal/index', data)
}
/////////////////企业/////////////////////
//企业获取个人信息
export const getEnterpriseInfo = data => {
	return request.post('/contract-v1/member/member-info/show', data)
}
//认证企业
export const companyStore = data => {
	return request.post('/company-v1/company/company-store', data)
}
//加入企业
export const userStore = data => {
	return request.post('/member-v1/member/user/application', data)
}
//印章管理
export const sealList = data => {
	return request.post('/contract-v1/member/member-seal/index', data)
}
//印章详情
export const sealdetail = data => {
	return request.post('/contract-v1/member/member-seal/show', data)
}
//添加详情
export const addSeal = data => {
	return request.post('/contract-v1/member/member-seal/store', data)
}
//切换角色登录
export const switchLogin = data => {
	return request.post('/contract-v1/auth/auth/switch-login', data)
}
//企业修改密码
export const enterpriseResetPassword = data => {
	return request.post('/contract-v1/auth/auth/reset-password', data)
}
//企业修改签署密码
export const enterprisesetSignPassword = data => {
	return request.post('/contract-v1/auth/auth/set-sign-password', data)
}
//更改个人信息
export const editUserInfo = data => {
	return request.post('/member-v1/member/member-info/store', data)
}
export const getMemberCertification = data => {
	return request.get('/member-v1/member/certification-show', data)
}
export const getCertificationInfo = data => {
	return request.post('/common-v1/certification/info', data)
}
/////////////企业////////////////////////
//更改企业信息
export const editEnterpriseInfo = data => {
	return request.post('/contract-v1/member/member-info/store', data)
}
export const memberOrderList = data => {
	return request.post('/common-v1/order/list', data)
}
export const commonMemberInfo = data => {
	return request.post('/common-v1/certification/info', data)
}
export const systemSetting = data => {
	return request.post('/common-v1/system-setting/index', data)
}
export const systemPermissions = data => {
	return request.post('/contract-v1/system/api-permission/index', data)
}
export const contractIndex = data => {
	return request.post('/common-v1/contract/index/index', data)
}
export const userSwitchList = data => {
	return request.post('/contract-v1/company/user/switch-list', data)
}
export const userSwitchLogin = data => {
	return request.post('/contract-v1/company/user/switch-login', data)
}